.TH "Mesh" 3 "11 Jun 2010" "Version Core 1.0" "Computer Graphics" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Mesh \- 
.SH SYNOPSIS
.br
.PP
\fC#include <Mesh.h>\fP
.PP
Inherited by \fBObject3D\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBMesh\fP ()"
.br
.ti -1c
.RI "\fBMesh\fP (\fBMesh\fP &m)"
.br
.ti -1c
.RI "\fB~Mesh\fP ()"
.br
.ti -1c
.RI "void \fBadd_vertex\fP (\fBVertex3D\fP *v)"
.br
.RI "\fIAdds new vertex to mesh. \fP"
.ti -1c
.RI "void \fBadd_triangle\fP (\fBTriangle\fP *t)"
.br
.RI "\fIAdds new triangle to mesh. \fP"
.ti -1c
.RI "vector< \fBTriangle\fP * > \fBget_face\fP (\fBTriangle\fP *t)"
.br
.RI "\fIReturn a face (set of triangles). \fP"
.ti -1c
.RI "vector< \fBTriangle\fP * > \fBget_triangs\fP ()"
.br
.ti -1c
.RI "vector< \fBVertex3D\fP * > \fBget_verts\fP ()"
.br
.ti -1c
.RI "\fBTriangle\fP * \fBget_triangle\fP (GLuint n)"
.br
.RI "\fIReturns the n'th triangle of the mesh. \fP"
.ti -1c
.RI "\fBVertex3D\fP * \fBget_vertex\fP (GLuint n)"
.br
.RI "\fIReturns the n'th vertex of the mesh. \fP"
.ti -1c
.RI "\fBVertex3D\fP \fBget_com\fP ()"
.br
.RI "\fIReturs the center of mass of the mesh. \fP"
.ti -1c
.RI "\fBTState\fP \fBget_state\fP ()"
.br
.RI "\fIReturns the state of the mesh. \fP"
.ti -1c
.RI "void \fBset_state\fP (\fBTState\fP)"
.br
.RI "\fISet the state of the mesh. \fP"
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "vector< \fBTriangle\fP * > \fBtriangs\fP"
.br
.ti -1c
.RI "vector< \fBVertex3D\fP * > \fBverts\fP"
.br
.ti -1c
.RI "\fBVertex3D\fP \fBcom\fP"
.br
.ti -1c
.RI "\fBTState\fP \fBstate\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Definition at line 24 of file Mesh.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "Mesh::Mesh ()"
.PP
Definition at line 13 of file Mesh.cpp.
.SS "Mesh::Mesh (\fBMesh\fP & m)"
.PP
Definition at line 15 of file Mesh.cpp.
.SS "Mesh::~Mesh ()"
.PP
Definition at line 21 of file Mesh.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void Mesh::add_triangle (\fBTriangle\fP * t)"
.PP
Adds new triangle to mesh. 
.PP
\fBParameters:\fP
.RS 4
\fIt\fP : triangle to add 
.RE
.PP

.PP
Definition at line 98 of file Mesh.cpp.
.SS "void Mesh::add_vertex (\fBVertex3D\fP * v)"
.PP
Adds new vertex to mesh. 
.PP
\fBParameters:\fP
.RS 4
\fIt\fP : vertex to add 
.RE
.PP

.PP
Definition at line 92 of file Mesh.cpp.
.SS "\fBVertex3D\fP Mesh::get_com ()"
.PP
Returs the center of mass of the mesh. 
.PP
Definition at line 115 of file Mesh.cpp.
.SS "vector< \fBTriangle\fP * > Mesh::get_face (\fBTriangle\fP * t)"
.PP
Return a face (set of triangles). 
.PP
Definition at line 28 of file Mesh.cpp.
.SS "\fBTState\fP Mesh::get_state ()"
.PP
Returns the state of the mesh. 
.PP
Definition at line 127 of file Mesh.cpp.
.SS "\fBTriangle\fP * Mesh::get_triangle (GLuint n)"
.PP
Returns the n'th triangle of the mesh. 
.PP
Definition at line 104 of file Mesh.cpp.
.SS "vector< \fBTriangle\fP * > Mesh::get_triangs ()"
.PP
\fBReturns:\fP
.RS 4
Vector of triangles 
.RE
.PP

.PP
Definition at line 80 of file Mesh.cpp.
.SS "\fBVertex3D\fP * Mesh::get_vertex (GLuint n)"
.PP
Returns the n'th vertex of the mesh. 
.PP
Definition at line 110 of file Mesh.cpp.
.SS "vector< \fBVertex3D\fP * > Mesh::get_verts ()"
.PP
\fBReturns:\fP
.RS 4
Vector of vertices 
.RE
.PP

.PP
Definition at line 86 of file Mesh.cpp.
.SS "void Mesh::set_state (\fBTState\fP s)"
.PP
Set the state of the mesh. 
.PP
Definition at line 121 of file Mesh.cpp.
.SH "Member Data Documentation"
.PP 
.SS "\fBVertex3D\fP \fBMesh::com\fP\fC [protected]\fP"
.PP
Center of mass of the mesh 
.PP
Definition at line 32 of file Mesh.h.
.SS "\fBTState\fP \fBMesh::state\fP\fC [protected]\fP"
.PP
State of the mesh 
.PP
Definition at line 34 of file Mesh.h.
.SS "vector<\fBTriangle\fP *> \fBMesh::triangs\fP\fC [protected]\fP"
.PP
Triangles of the mesh 
.PP
Definition at line 28 of file Mesh.h.
.SS "vector<\fBVertex3D\fP *> \fBMesh::verts\fP\fC [protected]\fP"
.PP
Vertices of the mesh 
.PP
Definition at line 30 of file Mesh.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for Computer Graphics from the source code.
